import instance from "@/tools/axios";

//添加
const DisAdd = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/Discounts/Add", data);
};

//分页
const DisPagination = async (params: any): Promise<ResponseApiDto> => {
  return instance.get("/Discounts/Pagination", params);
};

//删除
const DisDelete = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/Discounts/Delete", data);
};

export { DisAdd, DisPagination, DisDelete };
